package com.kfm;

public class PhoneTest {

    public static void main(String[] args) {
        // 创建Phone对象
        Phone p1 = new Phone();
//        p1.na
//        p1.size = -1;
        p1.setName("iPhone 14 Pro");
        p1.setPrice(7199);
        p1.setSize(-1);
        p1.setColor("暗紫色");
        p1.setType("iphone");
//        p1.name = "iPhone 14 Pro";
        System.out.println(p1.getName());
        System.out.println(p1.getSize());
        System.out.println(p1.getType());
        System.out.println(p1.getColor());
        System.out.println(p1.getPrice());
//        System.out.println(p1.size);
    }
}
